<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">
    <!-- Link Swiper's CSS -->
    <link rel="stylesheet" href="../../swiper/swiper.min.css">
    <style>
        /*清除浮动代码*/
        .clearfloat:after {
            display: block;
            clear: both;
            content: "";
            visibility: hidden;
            height: 0
        }

        .clearfloat {
            zoom: 1
        }

        html, body {
            margin: 0;
            padding: 0;
        }

        .app {
            width: 1920px;
            height: 1080px;
        }

        .home {
            display: none;
        }

        .sider-bar, .image-box {
            float: left;
        }

        .sider-bar {
            width: 314px;
            height: 1080px;
            background: url("images/sider-bar-bg.png") no-repeat;
        }

        .image-box {
            width: 1606px;
        }

        .sider-bar ul {
            padding: 2px 7px 0 7px;
            margin: 0;
        }

        .sider-bar .bar-item {
            width: 300px;
            height: 114px;
            padding: 20px 0;
            list-style: none;
            cursor: pointer;
        }

        .bar-item1 {
            background: url("images/btn1.png") 0 20px no-repeat;
        }

        .bar-item1.active {
            background: url("images/btn1-active.png") 0 20px no-repeat;
        }

        .bar-item2 {
            background: url("images/btn2.png") 0 20px no-repeat;
        }

        .bar-item2.active {
            background: url("images/btn2-active.png") 0 20px no-repeat;
        }

        .bar-item3 {
            background: url("images/btn3.png") 0 20px no-repeat;
        }

        .bar-item3.active {
            background: url("images/btn3-active.png") 0 20px no-repeat;
        }

        .bar-item4 {
            background: url("images/btn4.png") 0 20px no-repeat;
        }

        .bar-item4.active {
            background: url("images/btn4-active.png") 0 20px no-repeat;
        }

        .bar-item5 {
            background: url("images/btn5.png") 0 20px no-repeat;
        }

        .bar-item5.active {
            background: url("images/btn5-active.png") 0 20px no-repeat;
        }

        .bar-item6 {
            background: url("images/btn6.png") 0 20px no-repeat;
        }

        .bar-item6.active {
            background: url("images/btn6-active.png") 0 20px no-repeat;
        }

        .bar-item7 {
            background: url("images/btn7.png") 0 20px no-repeat;
        }

        .bar-item7.active {
            background: url("images/btn7-active.png") 0 20px no-repeat;
        }

        .image-item {
            width: 1606px;
            height: 1080px;
            display: none;
        }

        .image-item img {
            max-width: 100%;
        }

        .image-item.active {
            display: block;
        }
    </style>
</head>
<body>
<div id="app" class="app">
    <div class="home">
        <img src="images/1.jpg">
    </div>
    <div class="content-container clearfloat" v-show="!showHome">
        <div class="sider-bar">
            <ul>
                <li class="bar-item bar-item1 active"></li>
                <li class="bar-item bar-item2"></li>
                <li class="bar-item bar-item3"></li>
                <li class="bar-item bar-item4"></li>
                <li class="bar-item bar-item5"></li>
                <li class="bar-item bar-item6"></li>
                <li class="bar-item bar-item7"></li>
            </ul>
        </div>
        <div class="image-box">
            <div class="image-item active">
                <img src="images/2.jpg">
            </div>
            <div class="image-item">
                <!-- Swiper -->
                <div class="swiper-container">
                    <div class="swiper-wrapper">
                        <div class="swiper-slide">
                            <img src="images/3.jpg">
                        </div>
                        <div class="swiper-slide">
                            <img src="images/4.jpg">
                        </div>
                        <div class="swiper-slide">
                            <img src="images/5.jpg">
                        </div>
                        <div class="swiper-slide">
                            <img src="images/6.jpg">
                        </div>
                        <div class="swiper-slide">
                            <img src="images/7.jpg">
                        </div>
                    </div>
                    <!-- Add Pagination -->
                    <div class="swiper-pagination"></div>
                    <!-- Add Arrows -->
                    <div class="swiper-button-next"></div>
                    <div class="swiper-button-prev"></div>
                </div>
            </div>
            <div class="image-item">
                <img src="images/4.jpg">
            </div>
            <div class="image-item">
                <img src="images/5.jpg">
            </div>
            <div class="image-item">
                <img src="images/6.jpg">
            </div>
            <div class="image-item">
                <!-- Swiper -->
                <div class="swiper-container">
                    <div class="swiper-wrapper">
                        <div class="swiper-slide">
                            <img src="images/10.jpg">
                        </div>
                        <div class="swiper-slide">
                            <img src="images/11.jpg">
                        </div>
                        <div class="swiper-slide">
                            <img src="images/12.jpg">
                        </div>
                        <div class="swiper-slide">
                            <img src="images/13.jpg">
                        </div>
                        <div class="swiper-slide">
                            <img src="images/14.jpg">
                        </div>
                    </div>
                    <!-- Add Pagination -->
                    <div class="swiper-pagination"></div>
                    <!-- Add Arrows -->
                    <div class="swiper-button-next"></div>
                    <div class="swiper-button-prev"></div>
                </div>
            </div>
            <div class="image-item">
                <img src="images/8.jpg">
            </div>
        </div>
    </div>

</div>
<script src="../../js/jquery-1.12.4.min.js"></script>
<!-- Swiper JS -->
<script src="../../swiper/swiper.min.js"></script>
<script>
    ;;(function ($) {
        $(".bar-item").click(function () {
            var index = $(this).index();
            $(this).addClass("active").siblings().removeClass("active");
            $(".image-item").eq(index).addClass("active").siblings().removeClass("active");
        });
        var swiper = new Swiper('.swiper-container', {
            pagination: '.swiper-pagination',
            nextButton: '.swiper-button-next',
            prevButton: '.swiper-button-prev',
            paginationClickable: true,
            spaceBetween: 30,
            centeredSlides: true,
            autoplay: 5000,
            autoplayDisableOnInteraction: false,
            loop: true
        });
    })(jQuery)
</script>
</body>
</html>